package com.sxds.wn.security.encrypt;

import org.apache.log4j.Logger;

import com.sxds.wn.security.PasswordEncryptProvider;

/**
 * Description: <p>密码加密提供的工厂类</p>
 * Content Desc:<p>密码加密提供的工厂类<p>
 * Copy Right of Personal Tangtao 2007-2020
 * @author Andy
 * @version 1.0
 */

public class PasswordEncryptProviderFactory {
   
	/** 阻止生成工厂类的实例 */
    private PasswordEncryptProviderFactory() {

    }
    
    /**
     * Logger for this class
     */
    private static final Logger logger = Logger.getLogger(PasswordEncryptProviderFactory.class);

    /**
     * 单例模式的实例
     */
    private static PasswordEncryptProvider instance = null;

    /**
     * 取得密码加密提供者的实例
     * 
     * @return 密码加密提供者
     */
    public static PasswordEncryptProvider getPasswordEncryptProvider() throws SecurityException {
        if (instance == null) {
            instance = new PasswordEncryptProviderNoneImpl();
        }
        return instance;
    }

}